import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {DraIntegralLotteryComponent} from './dra-integral-lottery.component';

const routes: Routes = [
    {
        path: '', component: DraIntegralLotteryComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-dra-integral-lottery/add-dra-integral-lottery.module#AddDraIntegralLotteryModule'},
            {path: 'list', loadChildren: './list-dra-integral-lottery/list-dra-integral-lottery.module#ListDraIntegralLotteryModule'},
            {
                path: 'modify',
                loadChildren: './modify-dra-integral-lottery/modify-dra-integral-lottery.module#ModifyDraIntegralLotteryModule'
            },
            {
                path: 'report',
                loadChildren: './report-dra-integral-lottery/report-dra-integral-lottery.module#ReportDraIntegralLotteryModule'
            },
            {
                path: 'dra-integral-lottery',
                loadChildren: './report-dra-integral-lottery/report-dra-integral-lottery.module#ReportDraIntegralLotteryModule'
            },
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class DraIntegralLotteryRoutingModule {
}
